package castledefense.util;

import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Texture.TextureFilter;
import com.badlogic.gdx.graphics.g2d.ParticleEffect;

public final class Configure {
	public static final TextureFilter defaultMin = TextureFilter.Linear;
	public static final TextureFilter defaultMag = TextureFilter.Linear;
	
	public static final void setFilter(ParticleEffect target) {
		for (int i = 0; i < target.getEmitters().size; i++)
			target.getEmitters().get(i).getSprite().getTexture()
					.setFilter(defaultMin, defaultMag);
	}
	
	public static final void setFilter(ParticleEffect target,
			TextureFilter min, TextureFilter mag) {
		for (int i = 0; i < target.getEmitters().size; i++)
			target.getEmitters().get(i).getSprite().getTexture()
					.setFilter(min, mag);
	}
	
	public static final void setFilter(Texture target) {
		target.setFilter(defaultMin, defaultMag);
	}
	
	public static final void setFilter(Texture target, TextureFilter min,
			TextureFilter mag) {
		target.setFilter(defaultMin, defaultMag);
	}
}
